id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Lambda IntroNoArgLambda2

val constVal: () -> Int = { 4 } fun funcNoArg2(i: Int): Int = i * constVal.invoke() fun main() { println(funcNoArg2(5)) println(funcNoArg2(10)) println(funcNoArg2(20)) }

Click on to run the code

⬅ Back